// 封装token的操作方法 取存、获取、删除
const TOKENKEY = "token";
function getToken() {
  return localStorage.getItem(TOKENKEY);
}

function setToken(token: string) {
  return localStorage.setItem(TOKENKEY, token);
}

function removeToken() {
  return localStorage.removeItem(TOKENKEY);
}

export { getToken, setToken, removeToken };
